///*
// * Copyright 2016-2018 TVI Go Easy.
// * Created on 2018/3/22 17:29
// */
//package com.tvi.cloud.license.client;
//
//import com.tvi.cloud.license.model.Organization;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.HttpMethod;
//import org.springframework.http.ResponseEntity;
//import org.springframework.security.oauth2.client.OAuth2RestTemplate;
//import org.springframework.stereotype.Component;
//
///**
// * 请在此写下该类的说明
// *
// * @author mechanic
// */
//@Component
//public class Oauth2RestTemplateClient {
//    @Autowired
//    OAuth2RestTemplate restTemplate;
//
//    public Organization getOrganization(String id){
//
//        String serviceUri = "http://localhost:8030/api/org/v1/organization/1";
//        ResponseEntity<Organization> restExchange =
//                restTemplate.exchange(
//                        serviceUri,
//                        HttpMethod.GET,
//                        null, Organization.class, id);
//
//        return restExchange.getBody();
//    }
//}
